{% extends "admin/settings.html" %}

{% block extrahead %}
{{block.super}}
<script type="text/javascript" src="{{MEDIA_URL}}djblets/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
  function updateAuthFormDisplay() {
      var selection = $("#id_auth_backend").get(0);
      var backend = selection.options[selection.selectedIndex].value;

      $("fieldset[id^=fieldset_auth_]").hide();
      $("#fieldset_auth_" + backend).show();
  }

  $(document).ready(function() {
      $("#id_auth_backend")
          .change(updateAuthFormDisplay)
          .triggerHandler("change");
  });
</script>
{% endblock %}

{% block content %}
{{block.super}}
{% endblock %}
